<div class="box-body">
    <div class="form-group">
        <label>用户名</label>
        <input type="text" name="name" class="form-control" placeholder="Enter username" value="{$data['name']?$data['name']:''}">
    </div>
    <div class="form-group">
        <label>密码</label>
        <input type="password" name="password" class="form-control" placeholder="Enter password" value="">
    </div>
    <div class="form-group">
        <label>重复密码</label>
        <input type="password" name="repassword" class="form-control" placeholder="repeat password" value="">
    </div>
    <div class="form-group">
        <label for="exampleInputFile">头像</label>
        <input type="file" id="exampleInputFile" name="image" value="{$data['image']?$data['image']:''}">
        <p class="help-block">头像尺寸宽高比为1:1</p>
    </div>
    <div class="form-group">
        <label>用户组</label>
        <if condition="$data.id eq 1">
            <div><h2>超级管理员</h2></div>
            <else/>
            {$data.role_id|getRoles=###}
        </if>
        <p class="help-block"></p>
    </div>
</div>
<!-- /.box-body -->